<template>
	<view>
		<citySelect :nowCity="locationCity.city"></citySelect>
	</view>
</template>

<script>
	import citySelect from "../../components/citySelect/citySelect.vue";
	import {
		mapState,
		mapGetters,
		mapMutation,
		mapActions
	} from "vuex";
	export default {
		computed:{
			...mapState({
				locationCity:state=>state.map.locationCity
			})
		},
		components: {
			citySelect,
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		},
		onLoad() {
			// #ifdef MP-WEIXIN
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
			// #endif
			;
			// #ifndef H5
			this.$store.dispatch("getLocationCity")
			
			// #endif
		},
		onPullDownRefresh() {
			setTimeout(() => {
				this.$store.dispatch("getLocationCity")
				uni.stopPullDownRefresh();
			}, 1500)
		}
	}
</script>

<style>

</style>
